package com.example.javalib;

public class MyThread implements Runnable {


    int res=10;
    @Override
    public void run() {
        while (res>0){
            System.out.println("res"+res);
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            res--;
        }

    }
}
